# class A:
#     def t1(self):
#         return 1

#     def t2(self ,n):
#         return n + 1

# def t3():
#     return 1

# def t4(a):
#     return 1 + a

# def a():
#     test= A()
#     # 类方法
#     test.t1()
#     # 类方法调用类方法
#     test.t2(test.t1())
#     # 类方法调用函数
#     test.t2(t3())
#     # 函数
#     t3()
#     # 函数调用类方法
#     t4(test.t1())
#     # 函数调用函数
#     t4(t3())

# c = 10
# a = -1
# if c + a > 0:
#     a = a + 1
# else:
#     a = 0
# total = c + a
